package com.example.big_orange2.service;

import com.example.big_orange2.mapper.lockorderMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Service
public class LockOrderService {

    @Resource
   lockorderMapper lockorderMapper;

    public void endorder(Integer lid,Integer sid,  Float money,Integer uid ){
        Map<String, Object> mapSql = new HashMap<>();
        mapSql.put("lid", lid);
        mapSql.put("sid",sid);
        mapSql.put("money", money);
        mapSql.put("uid",uid);
        lockorderMapper.endpay(mapSql);

    }
}
